﻿using System;
using System.Reflection;

namespace template
{
    public class Reference
    {
        public static readonly FieldInfo bleed = typeof(Life).GetFields()[0];//bool
        public static readonly FieldInfo bones = typeof(Life).GetFields()[1];//bool (broken leg)
        public static readonly FieldInfo dead = typeof(Life).GetFields()[2];//bool

        public static readonly FieldInfo name = typeof(NetworkUser).GetFields()[0];//string (steam name)
        public static readonly FieldInfo nickname = typeof(NetworkUser).GetFields()[1];//string (unturned name)
        public static readonly FieldInfo steamID64 = typeof(NetworkUser).GetFields()[3];//string
        public static readonly FieldInfo rep = typeof(NetworkUser).GetFields()[5];//int
        public static readonly FieldInfo player = typeof(NetworkUser).GetFields()[6];//int

        public static readonly FieldInfo clientItems = typeof(Inventory).GetFields()[1];//ClientItem[,]
        public static readonly FieldInfo width = typeof(Inventory).GetFields()[2];//int
        public static readonly FieldInfo height = typeof(Inventory).GetFields()[3];//int
        public static readonly FieldInfo weight = typeof(Inventory).GetFields()[4];//int (100 / 1 kg)
        public static readonly FieldInfo capacity = typeof(Inventory).GetFields()[5];//int
        public static readonly FieldInfo speedModifier = typeof(Inventory).GetFields()[6];//float (the effect items have on your speed)

        public static readonly FieldInfo skills = typeof(Skills).GetFields()[0];//Skill[]

        public static readonly FieldInfo text_5 = typeof(NetworkChat).GetFields()[6];//string
        public static readonly FieldInfo rep_5 = typeof(NetworkChat).GetFields()[9];//int
        public static readonly FieldInfo name_5 = typeof(NetworkChat).GetFields()[3];//string

        public static readonly FieldInfo pname = typeof(PlayerSettings).GetFields()[0];//Your steam name (these are static, use getValue(null))
        public static readonly FieldInfo pid = typeof(PlayerSettings).GetFields()[4];//Your steam id
    }
}